package com.ysu.demo.service;

import com.ysu.demo.dataobject.Income;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ysu.demo.dto.IncomeDTOGoodPeople;
import com.ysu.demo.enums.IncomeState;
import com.ysu.demo.from.income.IncomeCreateFrom;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lhw
 * @since 2019-08-21
 */
public interface IIncomeService extends IService<Income> {

    List<IncomeDTOGoodPeople> findDTO(Integer projectId);

    Boolean create(IncomeCreateFrom incomeCreateFrom);

    Boolean rewriteMoney(Integer id, BigDecimal money);

    Boolean changeState(IncomeState oldState,IncomeState newState,Integer id,String fileUrl);
}
